package light.head.model;

import java.io.Serializable;

public class RoleMainPK implements Serializable {

	private static final long serialVersionUID = 5457938415463020153L;
	
	
	private Integer rc;						// 角色编号
	private Short tc;						// 该角色登陆后的默认现实界面的模板编号，模板在freemarker中创建
	
	

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {  
            return true;  
        }  
        if (null == obj) {  
            return false;  
        }  
        if (!(obj instanceof RoleHandlePK)) {  
            return false;  
        }  
  
        final RoleMainPK aho = (RoleMainPK) obj;
        if (null == rc || rc.intValue() != aho.getRc().intValue()) {
            return false;
        }
        if (null == tc || tc.shortValue() != aho.getTc().shortValue()) {
            return false;
        }
        return true;  
	}

	@Override
	public int hashCode() {
		int result;  
        result = rc.hashCode();  
        result = 29 * result + tc.hashCode();  
        return result;  
	}
	
	
	
	
	
	
	
	
	public Integer getRc() {
		return rc;
	}
	public void setRc(Integer rc) {
		this.rc = rc;
	}
	public Short getTc() {
		return tc;
	}
	public void setTc(Short tc) {
		this.tc = tc;
	}
}
